/*
package com.ssfeng.youxia.mapper.impl;

import com.ssfeng.youxia.dao.impl.MybatisBaseDaoImpl;
import com.ssfeng.youxia.mapper.SessionsMapper;
import com.ssfeng.youxia.model.Sessions;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

*/
/**
 * Created by liyuhang on 2019-09-14.
 *//*

@Repository("sessionsMapperImpl")
public class SessionsMapperImpl extends MybatisBaseDaoImpl<Sessions,String> implements SessionsMapper {

    private static final Logger logger = LoggerFactory.getLogger(SessionsMapperImpl.class);

    @Override
    public List<Sessions> findAllUserSessions() {
        Map<String, Object> map = new HashMap<>();
        try {
            List<Sessions> list = this.findList("findAllUserSessions", map);
            return list;
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public int deleteExpiredSessions(Date last_access_time) {
        int count = getSqlSession().delete("deleteExpiredSessions",last_access_time);
        return count;
    }
}
*/
